package com.xiansiblog.dao;

import com.xiansiblog.entity.Picture;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
/**
*@Description: 照片墙持久层接口
*@Author: 弦思
*@Date 2021/2/2
*/
public interface PictureDao {
    List<Picture> listPicture();

    int savePicture(Picture picture);

    Picture getPicture(Long id);

    int updatePicture(Picture picture);

    void deletePicture(Long id);
}
